<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>
	<body>
		<script>
			function Dog() {}

			// js中方法也是一种对象类型,因此可以在方法上添加属性或方法,类方法
			Dog.running = function () {}

			Dog.running()
		</script>
	</body>
</html>
